<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>ExtractXMLList</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">ExtractXMLList()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#3A3966"><b>ExtractXMLList</b></font>(Node, List() [, Flags])</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Extract elements from the given XML node into the specified List(). 
The list will be cleared before extracting the elements. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Node</i></td>
<td width="90%"> 
 
The XML node containing the list data. 

 

</td></tr>
<tr><td><i>List()</i></td>
<td> 
 
The list to fill with the XML elements. Any previous content of the list will be lost. 

 

</td></tr>
<tr><td><i>Flags (可选)</i></td>
<td> 
 
If this parameter is set to <font color="#924B72">#PB_XML_NoCase</font> then the comparison of XML node and attribute 
names is performed case insensitive. The default is to be case sensitive. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>备注</b></p><blockquote>



The extraction is performed recursively if the list has a structure type. 
The XML nodes must have the form described in the <a href="insertxmllist.html">InsertXMLList()</a> function. Nodes 
with different names are ignored by the extraction. 

 

</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  Xml$ = "&lt;list&gt;&lt;element&gt;1&lt;/element&gt;&lt;element&gt;10&lt;/element&gt;&lt;ELEMENT&gt;100&lt;/ELEMENT&gt;&lt;/list&gt;"
  
  <b><font color="#3A3966">If</font></b> <font color="#3A3966">ParseXML</font>(0, Xml$) <b><font color="#3A3966">And</font></b> <font color="#3A3966">XMLStatus</font>(0) = <font color="#924B72">#PB_XML_Success</font>
    <b><font color="#3A3966">NewList</font></b> <font color="#3A3966">Values</font>()
<font color="#3A3966">    ExtractXMLList</font>(<font color="#3A3966">MainXMLNode</font>(0),<font color="#3A3966"> Values</font>(), <font color="#924B72">#PB_XML_NoCase</font>)
    
    <b><font color="#3A3966">ForEach</font></b> <font color="#3A3966">Values</font>()
      <b><font color="#3A3966">Debug</font></b> <font color="#3A3966">Values</font>()
    <b><font color="#3A3966">Next</font></b>
  <b><font color="#3A3966">Else</font></b>
    <b><font color="#3A3966">Debug</font></b> <font color="#3A3966">XMLError</font>(0)
  <b><font color="#3A3966">EndIf</font></b>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="insertxmllist.html">InsertXMLList()</a>, <a href="extractxmlarray.html">ExtractXMLArray()</a>, <a href="extractxmlmap.html">ExtractXMLMap()</a>, <a href="extractxmlstructure.html">ExtractXMLStructure()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=extractxmlarray.html>ExtractXMLArray()</a> - <a href="index.html">XML Index</a> - <a href="extractxmlmap.html">ExtractXMLMap()</a> -&gt;<br><br>

</body></html>